package top.mybatisx.sql.core.sql;

import top.mybatisx.sql.core.sql.base.BaseSql;

/**
 * 查询
 */
public interface Distinct<T extends From> extends BaseSql {


    // 如果有单独 distinct 的情况
    StringBuilder distinct = new StringBuilder();

    default T distinct() {
        distinct.setLength(0);
        distinct.append("distinct ");

        return (T) this;
    }


}
